package com.example.shop_2302.address

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.example.base.mvvm.BaseActivity
import com.example.shop_2302.R
import com.example.shop_2302.databinding.ActivityAddressBinding

@Route(path = "/app/AddressActivity")
class AddressActivity : BaseActivity<ActivityAddressBinding,AddressViewModel>() {
    override fun initView() {

        //点击按钮，跳转到添加地址页面
        binding.btnAdd.setOnClickListener {
            ARouter.getInstance().build("/app/AddAddressActivity").navigation()
        }
    }

    override fun initData() {

    }

    override fun getViewModel(): Class<AddressViewModel>  = AddressViewModel::class.java

    override fun getLayout(): Int  = R.layout.activity_address

}